const Layout = () => import('@/layout/UserCenter.vue')

export default [
    {
        path: '/user',
        component: Layout,
        name: 'user',
        meta: {
            title: '用户中心'
        },
        redirect: '/user/index',
        children: [
            {
                path: '/user/index',
                name: 'UserIndex',
                component: () => import('@/views/users/Index.vue'),
                meta: {
                    title: '个人中心',
                },
            },
            {
                path: '/user/editProfile',
                name: 'editProfile',
                meta: {
                    title: '修改个人资料',
                },
                component: () => import('@/views/users/editProfile.vue'),
            },
            {
                path: '/user/donate',
                name: 'Donate',
                meta: {
                    title: '捐献入口',
                },
                component:()=>import('@/views/users/Donate.vue')
            },
            {
                path: '/user/shop',
                name: 'Shop',
                meta: {
                    title: '积分兑换',
                },
                component:()=>import('@/views/users/Shop.vue')
            },
            {
                path: '/user/expense',
                name: 'Expense',
                meta: {
                    title: '消费记录',
                },
                component:()=>import('@/views/users/Expense.vue')
            },
            {
                path: '/user/Donatelogs',
                name: 'DonateLogs',
                meta: {
                    title: '捐献记录',
                },
                component:()=>import('@/views/users/DonateLogs.vue')
            },
            {
                path: '/user/Message',
                name: 'Message',
                meta: {
                    title: '消息盒子',
                },
                component:()=>import('@/views/users/Message.vue')
            },
            {
                path: '/user/Activity',
                name: 'Activity',
                meta: {
                    title: '抽奖活动',
                },
                component:()=>import('@/views/users/Activity.vue')
            },//
            {
                path: '/user/bindqq',
                name: 'BindQQ',
                meta: {
                    title: '绑定QQ',
                },
                component:()=>import('@/views/users/BindQQ.vue')
            },
        ]
    }
]